package org.nowcoder.huawei.other;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * HJ106: 字符逆序
 */
public class HJ106 {

    public static void hj106() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        //String [] vals = br.readLine().split(" ");
        String line = br.readLine();
        StringBuilder build = new StringBuilder();

        for (int i = line.length() - 1; i >= 0; i--) {
            build.append(line.charAt(i));
        }
        System.out.print(build.toString());
    }
}
